<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>

<body>
	<table class="photos">
		<tr>
			<td>Name</td>
			<td>Email</td>
			<td>Subject</td>
			<td>Text</td>
		</tr>

		<c:forEach var="message" items="${messages}">
			<tr>
				<td>${message.name}</td>
				<td>${message.email}</td>
				<td>${message.subject}</td>
				<td>${message.content}</td>

			</tr>
		</c:forEach>
	</table>
	<c:forEach var="message" items="${messages}"></c:forEach>
</body>
